import request from '@/utils/request';

export function updateUser(id, data) {
  return request({
    url: `/api/users/${id}`,
    method: 'put',
    data
  });
}

export function getUser(id) {
  return request({
    url: `/api/users/${id}`,
    method: 'get'
  });
} 